import { createRouter, createWebHistory } from "vue-router";
import IndexView from '../view/IndexView.vue'

const routes = [
    {
        path: '/',
        redirect: '/index'
    },
    {
        path: '/index',
        name: 'index',
        component: IndexView,
    },
    // {
    //     path: '/:catchAll(.*)',
    //     redirect: '/404'
    // }
]

const router = createRouter({
    history: createWebHistory(),
    routes: routes
})

export default router